/*
 * Copyright (c)  2020,  DataPipeline
 * All rights reserved.
 *
 * Id:SQLTableSource.java   2020-07-18 11:17 wanglijun
 */
package cn.datacare.orm.source;

import cn.datacare.orm.annotation.id.Id;
import cn.datacare.orm.annotation.id.IdType;
import cn.datacare.orm.database.TableDesc;

import java.util.Map;

/**
 * <p>
 * Title: SQLTableSource
 * </p>
 * <p>
 * Description: SQLTableSource
 * </p>
 * <p>
 * Copyright: Copyright (c) 2020
 * </p>
 * <p>
 * Company/Department: DataPipeline
 * </p>
 *
 * @author wanglijun
 * @version 1.0
 * @since 2020-07-18 11:17
 */
public class SQLTableSource extends SQLSource {

    /***
     * TableName
     */
    protected TableDesc tableDesc;

    protected Map<String, Id> ids;

    protected IdType idType;

    public SQLTableSource(String template) {

        this.template = template;
    }

    public SQLTableSource() {

    }


    public IdType getIdType() {
        return idType;
    }

    public void setIdType(IdType idType) {
        this.idType = idType;
    }


    public TableDesc getTableDesc() {
        return tableDesc;
    }

    public void setTableDesc(TableDesc tableDesc) {
        this.tableDesc = tableDesc;
    }

    public Map<String, Id> getIds() {
        return ids;
    }

    public void setIds(Map<String, Id> ids) {
        this.ids = ids;
    }
}
